package com.example.demo.common.serviceImpl;

import com.example.demo.common.entity.Prediction3;
import com.example.demo.common.entity.Sample;
import com.example.demo.common.mapper.Prediction3Mapper;
import com.example.demo.common.mapper.SampleMapper;
import com.example.demo.common.service.Prediction3Service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class Prediction3ServiceImpl implements Prediction3Service {
    @Resource
    Prediction3Mapper prediction3Mapper;
    @Override
    public void savePrediction3(Prediction3 prediction3){
        prediction3Mapper.insert(prediction3);
    }
    @Override
    public void updatePrediction3(Prediction3 prediction3){
        prediction3Mapper.updateById(prediction3);
    }
    @Override
    public void deleteById(Long id){
        prediction3Mapper.deleteById(id);
    }
    @Override
    public Prediction3 findAll(){ return prediction3Mapper.findAll(); }
}
